/**
 * f-club.cn
 * Copyright (c) 2009-2012 All Rights Reserved.
 */
package com.mtoolkit.socket.transocder;

import java.io.IOException;

import com.mtoolkit.socket.SocketResponse;

/**
 * Socket response transcoder interface.
 * 
 * @author michael
 * @version $Id: SocketResponseTranscoder.java 70 2012-10-29 10:12:09Z xishizhang@gmail.com $
 */
public interface SocketResponseTranscoder {
	
	public byte[] sealResponse(SocketResponse response) throws IOException;
	
	public SocketResponse unsealResponse(byte[] bytes) throws ClassNotFoundException, IOException;
	
}
